#ifndef __ARCH_CONFIG_H__
#define __ARCH_CONFIG_H__
#include "lwip/ip_addr.h"

#define SIM_DHCP_ENABLE                 1

/* ip info must be same with host device, if dhcp not enable */
#if !SIM_DHCP_ENABLE
    #define HOST_IP_ADDR(ip)            IP4_ADDR(&ip, 192, 168, 31, 35)
    #define HOST_GW_ADDR(gw)            IP4_ADDR(&gw, 192, 168, 31, 1)
    #define HOST_MASK_ADDR(mask)        IP4_ADDR(&mask, 255, 255, 255, 0)
#endif /* !SIM_DHCP_ENABLE */
    #if SIM_DHCP_ENABLE
    #define HOST_MAC_0                  0x01
    #define HOST_MAC_1                  0x02
    #define HOST_MAC_2                  0x03
    #define HOST_MAC_3                  0x04
    #define HOST_MAC_4                  0x05
    #define HOST_MAC_5                  0x06
    #else /* !SIM_DHCP_ENABLE */
    /* mac info must be same with host device, if dhcp not enable */
    #define HOST_MAC_0                  0x08
    #define HOST_MAC_1                  0x00
    #define HOST_MAC_2                  0x27
    #define HOST_MAC_3                  0xec
    #define HOST_MAC_4                  0x60
    #define HOST_MAC_5                  0x69
#endif /* SIM_DHCP_ENABLE */

/* tcp echo server */
#define SIM_TCP_ECHO_SERVER             1
#if SIM_TCP_ECHO_SERVER
#define TCP_ECHO_SERVER_PORT            6677
#define TCP_ECHO_SERVER_PRIO            TCP_PRIO_MIN
#endif

/* udp echo server */
#define SIM_UDP_ECHO_SERVER             1
#if SIM_UDP_ECHO_SERVER
#define UDP_ECHO_SERVER_PORT            6688
#endif

#endif /* __ARCH_CONFIG_H__ */